package main

import "fmt"
import "unsafe"

var (
 m_a int = 88
 m_b bool = true
)

const (
    Unknow = 0
    Female = 1
    Male   = 2
)

const(
   _a = "abc"
   _b = len(_a)
   _c = unsafe.Sizeof(_a)
)


func init(){
   /* this is test */
   // test
   var age int
   var age1 int
   var age2 int
   age = 60
   age1 = 30
   age2 = age + age1
   fmt.Println(age2)
}

func main() {
   //var
   var v1, v2, v3 = 2, 3, "lalal"
   var a int = 10
   var b = 10
   c:=10
   var d = a + b + c
   var e = "this is test"
   fmt.Println(v1, v2, v3)
   fmt.Println(a, b, c, d, e)
   //fmt.Println(m_a, m_b)
   
   //const
   const v11, v22 = 2, 3
   fmt.Println(v11, v22)
   fmt.Println(_a,_b, _c)
   
   const(
   	a11 = iota
   	b11
   	c11
   	d11 = "ha"
   	e11 = 100
   	h11 = iota
   )
   
   const(
   	i = 1 << iota
        j = 3 << iota
        k
        l
   )
   
   
   fmt.Println(a11,b11,c11,d11,e11,h11)
   fmt.Println(i,j,k,l)
   
   var a111 int = 4
   var ptr *int
   
   ptr = &a111
   
   fmt.Printf("a value  %d \n", a111)
   fmt.Printf("*ptr value  %d \n", *ptr)
}
